package cn.com.unionlife.hy.core.vo;
 
public class BaseConditionVO {
	
	public static final int DEFAULT_PAGESIZE = 20;

	//当前登录用户ID，用于权限控制
	private String userId;
	private Integer pageNum = 1;
	private Integer pageSize = DEFAULT_PAGESIZE;
	private String orderField;
	private String orderDirection;
	
	public Integer getPageNum() {
		if(pageNum == null){
			pageNum = 1;
		}
		return pageNum;
	}
	public void setPageNum(Integer pageNum) {
		if(pageNum == null){
			this.pageNum = 1;
		}
		this.pageNum = pageNum;
	}
	public Integer getPageSize() {
		if(pageSize == null){
			pageSize = DEFAULT_PAGESIZE;
		}
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		if(pageSize == null){
			this.pageSize = DEFAULT_PAGESIZE;
		}
		this.pageSize = pageSize;
	}
	public String getOrderField() {
		return orderField;
	}
	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}
	public String getOrderDirection() {
		return orderDirection;
	}
	public void setOrderDirection(String orderDirection) {
		this.orderDirection = orderDirection;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}

	
	
}
